<?php
/**
 * <https://y.st./>
 * Copyright © 2018 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => 'A dream about hurt legs',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<img src="/img/CC_BY-SA_4.0/y.st./weblog/2018/12/30.jpg" alt="Highway exit" class="framed-centred-image" width="649" height="480"/>
<section id="dreams">
	<h2>Dream journal</h2>
	<p>
		I dreamed I&apos;d hurt both my legs.
		There were no serious injuries, but it was mildly painful to walk.
		I was shopping and the store offered wheelchairs, so I borrowed one for while I was there.
		The tires felt oddly squishy in my hands.
	</p>
	<p>
		A famous talk show host noticed me, and told me I should leave the wheelchairs for people that actually need them; that they&apos;re not toys.
		They just assumed I had no use for it.
		I explained my situation, and they told me if I was going to use one of the wheelchairs, I should at least have the courtesy to get someone to push me.
		I didn&apos;t understand.
		It would somehow make it better if I inconvenienced someone by getting them to give up their time to push my chair?
		And not only would that be an inconvenience to them, it&apos;d be an inconvenience to me.
		No one would gain anything from that situation.
		I started being careful not to get too close to them, so they couldn&apos;t grab my chair and take over.
	</p>
	<p>
		Judging from their tone of voice and mannerisms, the talk show host thought they&apos;d command respect from me due to their fame.
		Working for proprietary media companies isn&apos;t something I consider worthy of respect though.
		It doesn&apos;t matter how good you are at it, you&apos;re still working for the enemy.
		I can either hold it against you, in which case it&apos;s a bad thing, or I can chalk it up to you having a different moral code than I, in which case it has no impact on my view of you.
		In no way are you going to get respect from me for it though.
	</p>
	<p>
		I went to put the chair back and leave, as I&apos;d gotten what I needed, and it started to rain.
		I was going to get wet on my way to my next destination, which frustrated me further.
	</p>
</section>
<section id="drudgery">
	<h2>Drudgery</h2>
	<p>
		My discussion post for the day:
	</p>
	<blockquote>
		<p>
			Lazy evaluation may help in efficiency, but I don&apos;t think that&apos;s its main advantage.
			Lay evaluation seems to typically be used in combination with conditionals.
			Because of the way conditionals in functional programming work, without lazy evaluation, both options of the conditional would be executed, but them one of the two results discarded.
			As you said, computing this second value is a waste of resources, but there&apos;s more to it than that.
			It&apos;s often the case that the conditional was there to prevent impossible computations.
			Lazy evaluation therefore causes the part that would cause an error to get skipped over so the rest of the expression can return a meaningful value.
		</p>
	</blockquote>
</section>
END
);
